package com.ficus.road.maintain.core.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ficus.road.maintain.core.model.digitalTwin.LaneInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.List;

/**
 * @Author jinbiao.he
 * @Since 2021/4/7 下午8:36
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GpsHistory {
    @Id
    private String id;
    /**
     * 经度
     */
    private Double longitude;
    /**
     * 纬度
     */
    private Double latitude;
    private Double altitude;
    private Long timestamp;
    private Integer speed;
    private Integer direction;
    // gps坐标用于查询
    private List<Double> location;
    private Date creationTime;
    private String carId;
    // 是否是半自动补录的
    private Boolean isSupplement;
    // 是否自动修正过
    private Boolean isFixed;
    private Boolean autoFixed;
    // 是否手动修正过
    private Boolean isManualFixed;
    // 是否重传
    private Boolean isRetry;
    private LaneInfo laneInfo;

}
